<?php
global $active;
$map = array(
    'list' => '',
    'test' => '',
);
$map[$active] = ' class="active"';
?>
<ul class="nav navbar-nav">
    <li<?php echo $map['list'] ?>><a href="<?php echo Common::httpUri('/'); ?>">Font List</a></li>
    <li<?php echo $map['test'] ?>><a href="<?php echo Common::httpUri('/test'); ?>">Test Console</a></li>
</ul>